Skip to content

docs: clarify when Three.js needs Metro aliases - #451

Open
huytdps13400 wants to merge 1 commit into
wcandillon:mainfrom
huytdps13400:fix/408-clarify-three-metro-config
Open

docs: clarify when Three.js needs Metro aliases#451
huytdps13400 wants to merge 1 commit into
wcandillon:mainfrom
huytdps13400:fix/408-clarify-three-metro-config

Conversation

@huytdps13400

Copy link
Copy Markdown
Contributor

Summary

  • explain that current Expo/Metro can resolve the explicit three/webgpu export without custom Metro aliases
  • keep the resolver snippet as an optional fallback for older Metro, monorepos, bare three imports, and React Three Fiber
  • clarify why the Expo WebGPU template still includes additional resolver behavior

Fixes #408

Verification

  • yarn workspace react-native-webgpu build
  • yarn workspace docs tsc
  • yarn workspace docs lint
  • yarn workspace docs build:docs (26 static pages generated)
  • git diff --check

@wcandillon wcandillon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My current read of the situation would be to:

  1. update the three.js fiber template
  2. do a three.js only template
  3. as a bonus we do a pure WebGPU template

am I reading this correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: custom metro config for three.js appears not to be needed in all environments

2 participants